/*
 * WatchMonitor.java
 * 
 * last update: 16.01.2010 by Stefan Saru
 * 
 * author:	?
 * 
 * Obs:
 */
package engine;

import middle.*;

/**
 * this is a monitor whose job is to update the watches
 * @author alec(panovici@elcom.pub.ro)
 */
class WatchMonitor implements Monitor{

	LeafNode watch;

	WatchMonitor(DataHolder target, LeafNode watch){
		target.addMonitor(this);
		this.watch = watch;
	}

	public void trigger(){
		watch.update();
	}
}

